<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <title>SiteServer CMS - 用户中心</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta content="SiteServer CMS 用户中心" name="description" />
  <meta content="SiteServer CMS" name="author" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <link rel="shortcut icon" href="../assets/images/favicon.ico">
  <link href="../assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  <link href="../assets/css/font-awesome-4.7.0.min.css" rel="stylesheet" type="text/css" />
  <link href="../assets/css/ionicons-2.0.0.min.css" rel="stylesheet" type="text/css" />
  <link href="../assets/css/siteserver.min.css" rel="stylesheet" type="text/css" />
  <script src="../assets/lib/modernizr.min.js"></script>
  <style>
    .nav-tabs .nav-link.active{
      background-color: transparent;
    }
  </style>
</head>

<body>

  <div id="main" class="wrapper-page">

    <template v-if="pageConfig">
      <div class="text-center">
        <div class="logo-lg"> <span>{{ pageConfig.homeTitle }}</span> </div>
      </div>

      <form v-on:submit="btnLoginClick" class="form-horizontal m-t-20">

        <ul class="nav nav-tabs tabs-bordered nav-justified mb-3">
          <li class="nav-item"><a href="javascript:;" class="nav-link active">用户登录</a></li>
        </ul>

        <template v-if="pageAlert">
          <div class="alert" v-bind:class="{ 'alert-warning': pageAlert.type === 'warning', 'alert-success': pageAlert.type === 'success', 'alert-danger': pageAlert.type === 'danger' }">
            <button v-on:click="pageAlert = null" class="close" data-dismiss="alert">×</button>
            <span v-html="pageAlert.html"></span>
          </div>
        </template>

        <div class="form-group row">
          <div class="col-12">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fa fa-user-circle-o"></i></span>
              </div>
              <input v-model="account" v-bind:class="{ 'is-invalid': pageSubmit && !account }" class="form-control"
                type="text" v-focus placeholder="请输入用户名/手机号/邮箱">
            </div>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-12">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fa fa-key"></i></span>
              </div>
              <input v-model="password" v-bind:class="{ 'is-invalid': pageSubmit && !password }" class="form-control"
                type="password" placeholder="请输入密码">
            </div>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-12">
            <div class="input-group">
              <div class="input-group-prepend">
                <span class="input-group-text"><i class="fa fa-picture-o"></i></span>
              </div>
              <input v-model="captcha" v-bind:class="{ 'is-invalid': pageSubmit && !captcha }" class="form-control"
                type="text" placeholder="请输入验证码">
            </div>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-6">
            <div class="checkbox checkbox-primary" style="margin-top: 25px">
              <input id="autoLogin" type="checkbox" v-model="isAutoLogin">
              <label for="autoLogin">
                下次自动登录
              </label>
            </div>
          </div>
          <div class="col-6">
            <a href="javascript:;" v-on:click="reload">
              <img v-show="captchaUrl" style="display: none" class="float-right rounded" v-bind:src="captchaUrl" align="absmiddle">
            </a>
          </div>
        </div>

        <div class="form-group row">
          <div class="col-12">
            <button v-on:click="btnLoginClick" style="width: 100%" class="btn btn-primary btn-large btn-custom w-md"
              type="submit">登
              录</button>
          </div>
        </div>

        <div class="form-group row m-t-30">
          <!-- <div class="col-sm-6">
            <a href="recoverpw.html" class="text-muted"><i class="fa fa-lock m-r-5"></i> 忘记密码？</a>
          </div> -->
          <div class="col-12 text-right" v-if="pageConfig.isUserRegistrationAllowed">
            <a @click="btnRegisterClick" href="javascript:;" class="text-danger">新用户注册</a>
          </div>
        </div>

      </form>
    </template>
    <template v-else>
      <div class="text-center" style="margin-top: 100px">
        <img class="mt-3" src="../assets/images/loading.gif" />
        <p class="lead mt-3 text-nowrap">载入中，请稍后...</p>
      </div>
    </template>

  </div>

</body>

</html>

<script src="../assets/lib/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="../assets/lib/popper.min.js"></script>
<script src="../assets/lib/bootstrap.min.js"></script>
<script src="../assets/lib/lodash-4.17.10.min.js" type="text/javascript"></script>
<script src="../assets/lib/layer-3.1.1/layer.js" type="text/javascript"></script>
<script src="../assets/lib/sweetalert2-7.28.4.all.min.js" type="text/javascript"></script>
<script src="../assets/lib/vue-2.5.16.min.js" type="text/javascript"></script>
<script src="../assets/lib/vee-validate-2.1.0.js"></script>
<script src="../assets/lib/vee-validate-locale-zh_CN-2.1.0.js"></script>
<script src="../assets/lib/js.cookie-2.2.0.js"></script>
<script src="../assets/js/utils.js" type="text/javascript"></script>
<script src="../config.js" type="text/javascript"></script>

<script src="../assets/lib/md5-2.10.0.min.js" type="text/javascript"></script>
<script src="login.js" type="text/javascript"></script>